<?php
error_reporting(E_ALL);
require "commands/ICommand.php";
require "commands/CommandGenFile.php";
require "commands/CommandSaveToDb.php";
require "commands/CommandSaveToMemcached.php";
require "NewsModel.php";

$newModel = new NewsModel(null);
$newModel->commit(new CommandSaveToDb(),new CommandSaveToMemcached(), new CommandGenFile());